﻿<UserControl x:Class="FireStarterModeller.UI.DetailsView.WPF.SolutionAssemblyView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="25" Width="200">

    <UserControl.Resources>
        <Style x:Key="ClassTextBoxStyle" TargetType="{x:Type TextBox}">
            <Setter Property="TextBox.Foreground" Value="Black" />
            <Setter Property="TextBox.Background" Value="WhiteSmoke" />
            <Setter Property="TextBox.BorderThickness" Value="0" />
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="TextBox.Background" Value="LightGray" />
                </Trigger>
            </Style.Triggers>
        </Style>
        <Style x:Key="SelectedClassTextBoxStyle" TargetType="{x:Type TextBox}">
            <Setter Property="TextBox.Foreground" Value="WhiteSmoke" />
            <Setter Property="TextBox.Background" Value="Black" />
            <Setter Property="TextBox.BorderThickness" Value="0" />
        </Style>
        <Style x:Key="ExpanderStyle" TargetType="{x:Type Expander}" >
            <Setter Property="Expander.Background">
                <Setter.Value>
                    <LinearGradientBrush StartPoint="0,0" EndPoint="1,1" >
                        <GradientStop Offset="0" Color="White" />
                        <GradientStop Offset="10" Color="Black" />
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="SelectedExpanderStyle" TargetType="{x:Type Expander}" >
            <Setter Property="Expander.Background">
                <Setter.Value>
                    <LinearGradientBrush StartPoint="0,0" EndPoint="1,1" >
                        <GradientStop Offset="0" Color="AliceBlue" />
                        <GradientStop Offset="1.5" Color="Black" />
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>

    <Grid>

        <Expander Header="{Binding Name}" Style="{StaticResource ExpanderStyle}" Name="_assemblyExpander"  Height="25" Expanded="_assemblyExpander_Expanded" Collapsed="_assemblyExpander_Collapsed">
            <Border BorderBrush="Black" BorderThickness="1" >
                <StackPanel Height="25" Name="_classesStackPanel" >

                </StackPanel>
            </Border>


        </Expander>
    </Grid>



</UserControl>
